package com.zf.yichat.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

@Table(name = "lottery_prize")
public class LotteryPrize implements Serializable {
    @Id
    private Long id;

    @Column(name = "prize_name")
    private String prizeName;

    @Column(name = "prize_pic")
    private String prizePic;

    @Column(name = "lottery_rate")
    private BigDecimal lotteryRate;

    private String state;

    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public LotteryPrize(Long id, String prizeName, String prizePic, BigDecimal lotteryRate, String state, Date createTime) {
        this.id = id;
        this.prizeName = prizeName;
        this.prizePic = prizePic;
        this.lotteryRate = lotteryRate;
        this.state = state;
        this.createTime = createTime;
    }

    public LotteryPrize() {
        super();
    }

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return prize_name
     */
    public String getPrizeName() {
        return prizeName;
    }

    /**
     * @param prizeName
     */
    public void setPrizeName(String prizeName) {
        this.prizeName = prizeName == null ? null : prizeName.trim();
    }

    /**
     * @return prize_pic
     */
    public String getPrizePic() {
        return prizePic;
    }

    /**
     * @param prizePic
     */
    public void setPrizePic(String prizePic) {
        this.prizePic = prizePic == null ? null : prizePic.trim();
    }

    /**
     * @return lottery_rate
     */
    public BigDecimal getLotteryRate() {
        return lotteryRate;
    }

    /**
     * @param lotteryRate
     */
    public void setLotteryRate(BigDecimal lotteryRate) {
        this.lotteryRate = lotteryRate;
    }

    /**
     * @return state
     */
    public String getState() {
        return state;
    }

    /**
     * @param state
     */
    public void setState(String state) {
        this.state = state == null ? null : state.trim();
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}